import type { AppUsePlugin } from '../types'

import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'

// TODO: https://www.yuque.com/visualdev/vform3/ohyr5i
import '@/../lib/vform/designer.style.css'
import VForm3 from '@/../lib/vform/designer.umd.js'

export const useVForm: AppUsePlugin = (app) => {
  app.use(ElementPlus)
  app.use(VForm3) //全局注册VForm3，同时注册了v-form-designer、v-form-render等组件
}
